﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Serialization;

namespace d39
{
    public partial class GridLoad : GridPage
    {
        public override string SubTitle
        {
            get { return "Load"; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void UploadButton_Click(object sender, EventArgs e)
        {
            var xmlSerializer = new XmlSerializer(typeof(Grid));
            var grid = (Grid)xmlSerializer.Deserialize(GridFile.FileContent);
            Response.Redirect(grid.GetPageUrl("GridMove", UrlTweaks.Default));
        }
    }
}